import Vue from "vue";
import { message } from "../utils/resetMessage";
import {
  Button,
  Container,
  Header,
  Footer,
  Main,
  Aside,
  Avatar,
  Pagination,
  Backtop,
  Icon,
  Loading,
  Menu,
  MenuItem,
  MenuItemGroup,
  Submenu,
  Tooltip,
  Divider,
  Table,
  TableColumn,
  Form,
  FormItem,
  Input,
  Popover,
  Popconfirm,
  Card,
  Dialog,
  Select,
  Option,
  OptionGroup,
  MessageBox,
  Drawer
} from "element-ui";

Vue.use(Button);
Vue.use(Container);
Vue.use(Main);
Vue.use(Aside);
Vue.use(Header);
Vue.use(Footer);
Vue.use(Avatar);
Vue.use(Pagination);
Vue.use(Backtop);
Vue.use(Icon);
Vue.use(Loading.directive);
Vue.use(Menu);
Vue.use(MenuItem);
Vue.use(MenuItemGroup);
Vue.use(Submenu);
Vue.use(Tooltip);
Vue.use(Divider);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Input);
Vue.use(Popconfirm);
Vue.use(Card);
Vue.use(Popover);
Vue.use(Dialog);
Vue.use(Select);
Vue.use(Option);
Vue.use(OptionGroup);
Vue.use(Drawer);

// Vue.prototype.$ELEMENT = { size: 'small' };
Vue.prototype.$loading = Loading.service;
Vue.prototype.$message = message;
Vue.prototype.$confirm = MessageBox.confirm;
